<?php
// +----------------------------------------------------------------------
// | title: 校场日志
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2019/11/18 9:49
// +----------------------------------------------------------------------

$courseTypeArr = array(-999 => '-=研究科技=-') + getDiffConfig('course_type');
return array(
    1 => array(
        "title" => "发展日志",
        'table_name' => "tech",
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'nickname' => array('name' => '角色名','type' => 'text','value' => ''),
            "tech" => array("type" => "select","values" => $courseTypeArr,"value" => -999),
            'log_time' => array('name' => '时间','type' => 'date','values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show'=> array(
            'role_id' => '玩家ID',
            'nickname' => '角色名',
            'tech' => array("研究科技名称","function" => "itemName","param" => ["field" => "tech","config" => "course_type"]),
            'level' => "当前科技等级",
            'cost' => ['消耗道具', 'function' => "consume", 'param' => ["field" => "cost"]],
            'update_level' => '升级后等级',
            'log_time' => array("时间","function" => "changeDate"),
        )
    ),
    2 => array(
        "title" => "克制日志",
        'table_name' => "restrain",
        "where" => array(
            'role_id' => array('name' => '玩家ID','type' => 'text','value' => ''),
            'nickname' => array('name' => '角色名','type' => 'text','value' => ''),
            "tech" => array("type" => "select", "values" => [-999 => "-=兵种属性=-"] + config("corps_name_conf"), "value" => -999),
            'log_time' => array('name' => '时间','type' => 'date','values' => array('start_date' => date('Y-m-d'),'end_date' => date('Y-m-d'))),
        ),
        "where_merge" => [],
        'show'=> array(
            'role_id' => '玩家ID',
            'nickname' => '角色名',
            'tech' => array("兵种属性名称","function" => "getTypeName","param" => ["field" => "tech","config" => "corps_name_conf"]),
            'level' => "当前强化等级",
            'cost' => ['消耗道具', 'function' => "consume", 'param' => ["field" => "cost"]],
            'update_level' => '升级后强化等级',
            'log_time' => array("时间","function" => "changeDate"),
        )
    ),
);